var http=require('http');
var path=require('path');
var callBackUtil=require('../utils/callBackUtil');
http.createServer((req,res)=>{
    //获取请求文件路径
    const filePath=path.join(process.cwd(),req.url);
    console.info(filePath);
    callBackUtil.readFileUtil(req,res,filePath);
}).listen(8081,()=>{
    console.info('服务正常启动了');
});